import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path:'/search',
    name: 'Search',
    component: () => import('../views/Search.vue')
  },
  {
    path:'/songlist:id',
    name:'SongList',
    component:() =>import('../views/SongList.vue')
  },
  {
    path:'/play:ids',
    name:'Play',
    component:() =>import('../views/Play.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
